import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/ruoyi";

// 运营报表-当日产品报表
export function queryDownProductDayByPage(data) {
    return request({
      url: "/report/operation/v1.0.0/queryDownProductDayByPage",
      method: "post",
      data: data,
    });
  }
// 运营报表-历史产品报表
export function queryDownProductHistoryByPage(data) {
    return request({
      url: "/report/operation/v1.0.0/queryDownProductHistoryByPage",
      method: "post",
      data: data,
    });
  }
// 运营报表-当日渠道报表
export function queryUpProductDayByPage(data) {
    return request({
      url: "/report/operation/v1.0.0/queryUpProductDayByPage",
      method: "post",
      data: data,
    });
  }
// 运营报表-历史渠道报表
export function queryUpProductHistoryByPage(data) {
    return request({
      url: "/report/operation/v1.0.0/queryUpProductHistoryByPage",
      method: "post",
      data: data,
    });
  }

// 运营报表-当日渠道撞库产品报表-【撞库报表】
export function queryUpAndDownRelationByPage(data) {
  return request({
    url: "/report/operation/v1.0.0/queryUpAndDownRelationByPage",
    method: "post",
    data: data,
  });
}

// 运营报表-当日渠道撞库产品重置
export function deleteUpAndDownRelation(params) {
  return request({
    url: "/report/operation/v1.0.0/deleteUpAndDownRelation",
    method: 'get',
    params: params
  });
}

// 运营报表-当日产品撞库产品报表-【产品撞库】
export function queryDownAndUpRelationByPage(data) {
  return request({
    url: "/report/operation/v1.0.0/queryDownAndUpRelationByPage",
    method: "post",
    data: data,
  });
}

// 运营报表-当日渠道撞库产品重置
export function deleteDownAndUpRelation(params) {
  return request({
    url: "/report/operation/v1.0.0/deleteDownAndUpRelation",
    method: 'get',
    params: params
  });
}
